import request from '@/utils/request'

const emergency = {
  teamList(params){
    return request.get(`/wlaq/emergencyPerson/list`,{params});
  },
  teamMemberGet(id){
    return request.get(`/wlaq/emergencyPerson/detail/${id}`);
  },
  teamMemberAdd(data){
    return request.post('/wlaq/emergencyPerson/add', data);
  },
  teamMemberUpdate(data){
    return request.post('/wlaq/emergencyPerson/update', data);
  },
  teamMemberDel(id){
    return request.post(`/wlaq/emergencyPerson/delete/${id}`);
  },
  watchList(params){
    return request.get(`/wlaq/watchScheduleInfo/list`,{params});
  },
  watchGet(id){
    return request.get(`/wlaq/watchScheduleInfo/detail/${id}`);
  },
  watchAdd(data){
    return request.post('/wlaq/watchScheduleInfo/add', data);
  },
  watchUpdate(data){
    return request.post('/wlaq/watchScheduleInfo/update', data);
  },
  watchDel(id){
    return request.post(`/wlaq/watchScheduleInfo/delete/${id}`);
  },
}

export default emergency;
